﻿using System;
using System.IO;
using System.Web;
using SyCODE.Component.Security;

namespace SyCODE.Blog
{
    /// <summary>
    /// IssueTicket.aspx 的处理程序。
    /// </summary>
    public class IssueTicket : IHttpHandler
    {
        public bool IsReusable
        {
            get
            {
                return true;
            }
        }
        public void ProcessRequest(HttpContext context)
        {
            context.Response.Write(Ticket.Encrypt(Ticket.CONST_CRYPT_KEY, DateTime.Now.Ticks.ToString(), 3));
        }
    }
}
